<template>
  <div class="noData">
    <img
      src="./assets/nodata.png"
      alt=""
    >
    <p class="noDate_text">
      {{ lang == 'zh_CN' ? text : 'No data' }}
    </p>
  </div>
</template>
<script>

export default {
  name: 'Nodata',
  props: {
    text: {
      type: String,
      default: () => '没有数据',
    },
  },
  data() {
    return {
      lang: 'zh_CN',
    };
  },
  mounted() {
    this.lang = JE.getCookies('je-local-lang') || 'zh_CN';
  },
};
</script>
<style lang="scss" scoped>
.noData {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  .img{
    width: 120px;
  }
  > .noDate_text {
    color: rgba(161, 173, 182, 1);
    width: 100%;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
  }
}
</style>
